<template>
  <div class="maincontainer">
    <div class="content-bg">
      <div class="current-content from-Resetcsss">
        <div class="title-h">集体建设用地占用申请表</div>

        <div class="tab-list-cent">
          <el-row class="row-tab" type="flex" :gutter="50">
            <el-col :span="12">
              <div class="tab-list">
                <div class="tab-list-name">项目名称</div>
                <div class="tab-list-text">{{applyInfo.projectName}}</div>
              </div>
            </el-col>
            <el-col :span="12">
              <div class="tab-list">
                <div class="tab-list-name">日期</div>
                <div class="tab-list-text">{{applyInfo.startTime}}</div>
              </div>
            </el-col>
          </el-row>
          <el-row class="row-tab" type="flex" :gutter="50">
            <!-- 若要居中,直接style="text-align:center" -->
            <el-col :span="12">
              <div class="tab-list">
                <div class="tab-list-name">经办人</div>
                <div class="tab-list-text">{{applyInfo.agent}}</div>
              </div>
            </el-col>
            <el-col :span="12">
              <div class="tab-list">
                <div class="tab-list-name">联系方式</div>
                <div class="tab-list-text">{{applyInfo.contactInformation}}</div>
              </div>
            </el-col>
          </el-row>
          <el-row class="row-tab" type="flex" :gutter="0">
            <el-col :span="12">
              <div class="tab-list">
                <div class="tab-list-name">宗地位置</div>
                <div class="tab-list-text">{{applyInfo.position}}</div>
              </div>
            </el-col>
            <el-col :span="12">
              <div class="tab-list">
                <div class="tab-list-name">具体位置</div>

                <div class="tab-list-text">{{applyInfo.specificLocation}}</div>
              </div>
            </el-col>
          </el-row>
          <el-row class="row-tab" type="flex" :gutter="50">
            <el-col :span="12">
              <div class="tab-list">
                <div class="tab-list-name">宗地面积(平方米)</div>

                <div class="tab-list-text">{{applyInfo.landAreaRice}}</div>
              </div>
            </el-col>
            <el-col :span="12">
              <div class="tab-list">
                <div class="tab-list-name">宗地面积(亩)</div>

                <div class="tab-list-text">{{applyInfo.landAreaMu}}</div>
              </div>
            </el-col>
          </el-row>
          <el-row class="row-tab" type="flex" :gutter="50">
            <el-col :span="12">
              <div class="tab-list">
                <div class="tab-list-name">容积率</div>

                <div class="tab-list-text">{{applyInfo.plotRatio}}</div>
              </div>
            </el-col>
            <el-col :span="12">
              <div class="tab-list">
                <div class="tab-list-name">建筑密度(%)</div>
                <div class="tab-list-text">{{applyInfo.buildingDensity}}</div>
              </div>
            </el-col>
          </el-row>
          <el-row class="row-tab" type="flex" :gutter="50">
            <el-col :span="24">
              <div class="tab-list">
                <div class="tab-list-name">绿化率(%)</div>

                <div class="tab-list-text">{{applyInfo.greeningRate}}</div>
              </div>
            </el-col>
          </el-row>
          <el-row class="row-tab" type="flex" :gutter="50">
            <el-col :span="24">
              <div class="tab-list">
                <div class="tab-list-name">规划用途</div>
                <div class="tab-list-text">{{applyInfo.plannedUse}}</div>
              </div>
            </el-col>
          </el-row>
          <el-row class="row-tab" type="flex" :gutter="50">
            <el-col :span="24">
              <div class="tab-list">
                <div class="tab-list-name zfsp">政府批转意见</div>
        
                <textarea
                  class="tab-list-text"
                  name=""
                  id=""
                  cols="10"
                  rows="3"
                  v-model="applyInfo.governmentOpinion"
                >
                 
                 </textarea>
              </div>
            </el-col>
          </el-row>
          <el-row class="row-tab" type="flex" :gutter="50">
            <el-col :span="24">
              <div class="tab-list">
                <div class="tab-list-name other">其他说明</div>
                <textarea
                  class="tab-list-text"
                  name=""
                  id=""
                  cols="10"
                  rows="3"
                  v-model="applyInfo.otherInstructions"
                ></textarea>
              </div>
            </el-col>
          </el-row>
          <el-row
            class="row-tab"
            type="flex"
            style="border-bottom: 1px solid #dfe2eb"
            :gutter="50"
          >
            <el-col :span="24">
              <div class="tab-list">
                <div class="tab-list-name center">中心所(分局)意见</div>

                <textarea
                  class="tab-list-text"
                  name=""
                  id=""
                  cols="20"
                  rows="3"
                  v-model="applyInfo.centralOpinion"
                ></textarea>
              </div>
            </el-col>
          </el-row>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getApplicationInfo } from "@/api/ywsp/db.js";
export default {
  data() {
    return {
      value1: "",
      businessId:'',
     

      applyInfo: {
        agent: "", //经办人
        buildingDensity: "", // 建筑密度
        centralOpinion: "",
        contactInformation: "",
        governmentOpinion: "",
        greeningRate: "",
        landAreaMu: "",
        landAreaRice: "",
        otherInstructions: "",
        plannedUse: "",
        plotRatio: "",
        position: "",
        projectName: "",
        specificLocation: "",
        startTime: "",
      },
    };
  },
  //  async created() {
  //     const res= await applyTable(this.applyInfo)
  //   }
 async created() {
     this.businessId=this.$route.query.businessId
    const res=await getApplicationInfo({businessId:this.businessId})
    console.log(res.data.result)
    this.applyInfo=res.data.result
   }
};
</script>

<style lang="scss" scoped>
input {
  border: none;
  outline: none;
  width: 100%;
}
textarea {
  border: none;
  outline: none;
}
.tab-list-cent .tab-list .tab-list-name /deep/ {
  line-height: 20px !important;
}
/deep/ .el-input__inner {
  height: 14px;
  border: none;
  margin-top: -10px;
}
/deep/.el-input__icon {
  line-height: 18px;
}
/deep/.el-date-editor.el-input {
  // height: 10px;
  border: none;
}
/deep/ .el-cascader {
  line-height: 18px;
}
.maincontainer {
  height: 100%;
}

.tab-list-cent {
  width: 100%;
  margin-top: 30px;
  .tab-list {
    display: flex;
    font-size: 12px;
    .tab-list-name {
      width: 180px;
      padding: 12px;
      background: #f8f8f8;
      line-height: 12px;
      color: #606266;
      text-align: right;
    }
    .tab-list-text {
      flex: 1;
      padding: 12px;
      line-height: 14px;
      color: #434654;
      text-align: left;
    }
  }
}

.row-tab {
  width: 100%;
  border: 1px solid #dfe2eb;
  margin: 0px !important;
  box-sizing: border-box;
  border-bottom: none;
}
.content-bg {
  background: #ffffff;
  // border: 1px solid red;
  width: 100%;
  padding: 0px 10%;
  box-sizing: border-box;
  height: 100%;
  .top {
    margin-top: 30px;
    .top-l {
      float: left;
      font-size: 14px;
      margin-left: 10px;
    }
    .top-r {
      float: right;
      font-size: 14px;
      margin-right: 20px;
    }
  }
}
.current-content {
  width: 95%;
  margin: 0 auto;
  text-align: center;
  .title-h {
    height: 44px;
    line-height: 60px;
    font-size: 20px;
    text-align: center;
    font-weight: 700;
  }
}
</style>
<style lang="scss">
.from-Resetcsss {
  .el-input-group__append,
  .el-input-group__prepend {
    // width: 50px;
    text-align: center;
    padding: 0px;
  }
  .el-form-item__label {
    padding: 9px 15px;
    line-height: initial;
  }

  .el-col-12 {
    border-right: 1px solid #dfe2eb;
    padding: 0px !important;
  }
  .el-col-24 {
    padding: 0px !important;
  }
  .el-col-12:nth-child(2n + 0) {
    border-right: none;
  }
  .el-form-item__content {
    display: flex;
    line-height: initial;
  }
  .el-select {
    flex: 1;
  }
  .el-form-item {
    margin-bottom: 0px;
  }
}
</style>